﻿<%@ Page language="c#" Codebehind="Compose.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.Mail.Compose" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<meta name="author" content="Herry" />
<meta name="Copyright" content="Copyright (c) 2009 himm.cn" />
<title>写新邮件</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="/css/other.css" media="screen" />
<style type="text/css">
table {
	width:100%;
	border:none;
}
table th {
	background:#ccccff;
}
table th, table td {
	padding:3px;
}
table td span a, table td span a:visited {
	color:#fff;
}
.active1 {
	background:#1a499d;
}
.active2 {
	background:#337fb2;
	color:#fff;
	font-weight:bold;
}
.tabnavhead {
	text-align:right;
	position:relative;
}
.tnc {
	float:left;
	width:90px;
	height:30px;
	margin:0 0 0 5px;
	position:relative;
	bottom:0px;
}
.tnc a {
	width:90px;
	height:26px;
	display:block;
	padding:4px 0 0;
	text-align:center;
	line-height:26px;
	color:#fff;
}
.tnc a:visited {
	color:#fff;
}
.tnc a:hover {
	color:#ff0;
}
.rmail{border:1px solid #337FB2; text-align:left;}
.rmail td{ padding: 8px 8px 2px;}
</style>

		<script language="javascript">
			function dialwinprocess(type)
			{
				var newdialoguewin = window.showModalDialog("SelectReceiver.aspx?ClassID=<% Response.Write(ClassID); %>&type="+type,window,"dialogWidth:600px;DialogHeight=490px;status:no");
				if(newdialoguewin!=null){
					if(newdialoguewin.length>5)
					{
						ReceiverTypeArray = newdialoguewin.split("|");
						SendToArray = ReceiverTypeArray[0].split("-");
						CcToArray = ReceiverTypeArray[1].split("-");
						BccToArray = ReceiverTypeArray[2].split("-");
						try{
							this.document.Compose.txtSendTo.value = SendToArray[0];
							this.document.Compose.txtCcTo.value = CcToArray[0];
							this.document.Compose.txtBccTo.value = BccToArray[0]; 
						}
						catch(e){}
						
						
					}
				}
			}
			
			
		function ProjectSelect()
{
	
	var ret;
	ret = window.showModalDialog("TreeView.aspx",window,"dialogHeight:400px;dialogWidth:300px;center:Yes;Help:No;Resizable:No;Status:Yes;Scroll:auto;Status:no;");
	if(ret>0)
	return false;
}
		
		</script>
		<script language="javascript">
			
		var ball1 = new Image();
		var ball2 = new Image();
		ball1.src = 'images/ball1.gif';
		ball2.src = 'images/ball2.gif';

		var active = new Image();
		var nonactive = new Image();
		active.src = '../../../images/maillistbutton2.gif';
		nonactive.src = '../../../images/maillistbutton1.gif';

		function onMouseOver(img)
		{
			document.images[img].src = ball2.src;
		}

		function onMouseOut(img)
		{
			document.images[img].src = ball1.src;
		}

		function onOverBar(bar)
		{
			if (bar != null) {
				bar.style.backgroundImage = "url("+active.src+")";
				
			}
		}

		function onOutBar(bar)
		{
			if (bar != null) {
				bar.style.backgroundImage = "url("+nonactive.src+")";
			}
		}
		
		function selectAll(){
			var len=document.MailList.elements.length;
			var i;
		    for (i=0;i<len;i++){
			if (document.MailList.elements[i].type=="checkbox"){
		        document.MailList.elements[i].checked=true;								
						 }
					}
				}

		function unSelectAll(){
	          var len=document.MailList.elements.length;
	          var i;
	          for (i=0;i<len;i++){
	               if (document.MailList.elements[i].type=="checkbox"){
	                  document.MailList.elements[i].checked=false; 
	               }   
	        	 } 
		    }		

		</script>
</head>
<body>
<div class="m">
<form id="Compose" method="post" encType="multipart/form-data" runat="server">
<p class="path"><span class="right"> </span><a href="/SubModule/UnitiveDocument/Desktop.aspx">我的桌面</a> >> 我的邮件</p>
<div class="con">
  <div class="tabnav">
        <p class="tabnavhead"> <span id="Span1" class="active1 tnc">
          <a href="Index.aspx?FolderType=1">收件箱</a>
          </span> <span id="Span2" class="active1 tnc">
          <a href="Index.aspx?FolderType=2">发件箱</a>
          </span> <span id="Span3" class="active1 tnc">
          <a href="Index.aspx?FolderType=3">废件箱</a>
          </span> <span id="Span4" class="active2 tnc">
          <a href="Compose.aspx?ClassID=0">撰写新邮件</a>
          </span> <span id="Span5" class="active1 tnc">
          <a href="Index.aspx?FolderType=4">外部邮件</a>
          </span>
        </p>
      </div>
        <div>
			<table class="rmail">
<%--			    <tr>
			        <th colspan="2">&nbsp;</th>
			    </tr>
--%>				<tr>
					<td style="width:56px;"><asp:label id="lblSendTo" runat="server" CssClass="txt" >收件人:</asp:label></td>
					<td><input class="txt" style="width: 404px;" readOnly type="text" size=62  value="<%=SendToRealName%>" name="txtSendTo">&nbsp;<a style="cursor:pointer" onclick="dialwinprocess(1)" href="#"> 选择收件人 </a></td>
				</tr>
				<tr>
					<td><asp:label id="lblCcTo" runat="server" CssClass="txt" >抄送人:</asp:label> </td>
					<td><input class="txt" style="width: 404px;" readOnly type="text" size=62  value="<%=CcToRealName%>" name=txtCcTo>&nbsp;<a style="cursor:pointer" onclick="dialwinprocess(2)" href="#"> 选择抄送人 </a></td>
				</tr>
				<tr>
					<td><asp:label id="lblBccTo" runat="server" CssClass="txt" >秘抄人:</asp:label> </td>
					<td><input class="txt" style="width: 404px;"  readOnly type=text size=62 value="<%=BccToRealName%>" name=txtBccTo >&nbsp;<a style="cursor:pointer" onclick="dialwinprocess(2)" href="#"> 选择密送人 </a></td>
				</tr>
				<tr>
					<td><asp:label id="lblSubject" runat="server" CssClass="txt">主&nbsp;&nbsp;题:</asp:label> </td>
					<td><asp:textbox id="txtSubject" runat="server" CssClass="txt" style="width: 404px;"></asp:textbox></td>
				</tr>
				<tr>
					<td><asp:label id="lblImportance" runat="server" CssClass="txt" >重要性:</asp:label> </td>
					<td><asp:dropdownlist id="listImportance" runat="server" Width="150px"></asp:dropdownlist> <input 
class="txt" name=hdnProjectID style="width: 150px;" type=hidden size=11 value="<%=ClassID %>" width="20"><input class="txt" name=txtProjectName  style="width: 150px;" readOnly type=text size=11 value="<%=GetClassName() %>" width="20"><input class="redButtonCss" onclick="ProjectSelect()" type="button" value="▼"><asp:CheckBox id="cbRemind" runat="server"  Text="站内短消息提醒"></asp:CheckBox></td>
				</tr>
				<tr>
					<td><asp:label id="lblBody" runat="server" CssClass="txt" >内&nbsp;&nbsp;容:</asp:label> </td>
					<td><asp:textbox id="txtBody" runat="server" CssClass="txt" Width="486px" Height="188px" TextMode="MultiLine"></asp:textbox></td>
				</tr>
                <tr>
                    <td>附件1:</td>
                    <td><input class="txt" id="filecontrol1" style="width: 446px;" type="file" size="5" name="filecontrol1" runat="server"></td>
                </tr>
                <tr>
                    <td>附件2:</td>
                    <td><input class="txt" id="filecontrol2" style="width: 446px;" type="file" size="6" name="filecontrol2" runat="server"></td>
                </tr>
                <tr>
                    <td>附件3:</td>
                    <td><input class="txt" id="File1" style="width: 446px;" type="file" size="6" name="filecontrol3" runat="server"></td>
                </tr>
                <tr>
                    <td>附件4:</td>
                    <td><input class="txt" id="File2" style="width: 446px;" type="file" size="6" name="filecontrol4" runat="server"></td>
                </tr>
                <tr>
                <td></td>
                <td><asp:button id="btnUpload" runat="server" CssClass="redButtonCss" Text="添加附件"></asp:button><asp:listbox id="listUp" runat="server" style="width: 146px;" SelectionMode="Single"></asp:listbox><asp:button id="btnRemove" runat="server" CssClass="redButtonCss" Text="删除附件"></asp:button>
               </td>
               </tr>
               <tr>
                <td></td>
                <td><p style="width:280px;"><asp:checkboxlist id="cblistAttribute" runat="server"  RepeatDirection="Horizontal"></asp:checkboxlist></p></td>
               </tr>
               <tr>
                <td></td>
                <td style="padding: 0 0 18px 0;"><asp:button id="btnSendMail" runat="server" CssClass="ButtonCss" Text=" 发  送 "></asp:button> <input class=ButtonCss style="width: 58px;" onclick="javascript:try {if(parent.frames.length==0) window.close();else self.location='<% Response.Write(Request.UrlReferrer); %>';} catch(e){}" type=button value=" 返  回 "></td>
               </tr>

            </table>
			<input style="Z-INDEX: 109; LEFT: 137px; POSITION: absolute; TOP: 338px" type="hidden" name="hdnSendToStr">
			<input type="hidden" value="<%=SendTo%>" name=hdnTxtSendTo>
			<input type="hidden" value="<%=CcTo%>" name=hdnTxtCcTo>
			<input type="hidden" value="<%=BccTo%>" name=hdnTxtBccTo> 
     </div>
  </div>
  </form>
</div>
</body>
</html>